package org.poptest.junit4.annotation;

import org.junit.runner.Runner;
import org.junit.runner.notification.RunListener;
import org.junit.runners.BlockJUnit4ClassRunner;

import java.lang.annotation.Annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author Alan Roche
 *         Date: 23/01/11
 *         Time: 22:42
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface Notify {
    Class<? extends BlockJUnit4ClassRunner> delegateTo() default BlockJUnit4ClassRunner.class;

    /**
     * Add 1 or more listeners
     * @return
     */
    Class<? extends RunListener>[] listeners() default {};
}
